<?php

namespace common\models;

use Yii;
use yii\db\ActiveRecord;

class Contact extends ActiveRecord
{
    public static function tableName()
    {
        return 'contact';
    }

    /**
     * 验证规则
     * @return array
     */
    public function rules()
    {
        return [
            [['id'], 'integer'],
            [['phone'], 'string'],
        ];
    }

    /**
     * 标签名
     * @return array
     */
    public function attributeLabels()
    {
        return [
            'id' => 'Id',
            'phone' => 'phone',
        ];
    }
}